package com.thinkin.common.exception;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class JdbcException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8801718407102159973L;

	private Logger log = null;

	public JdbcException(Class clazz, String message) {
		super(message);
		System.out.println(message);
		log = LoggerFactory.getLogger(clazz);
		log.error(message);
	}

	public JdbcException(Class clazz, Throwable throwable) {
		super(throwable);
		throwable.printStackTrace();
		log = LoggerFactory.getLogger(clazz);
		log.error(throwable.getMessage());
	}
}
